package cn.wolfcode.luowowo.search.service;

import cn.wolfcode.luowowo.query.SearchQueryObject;
import org.springframework.data.domain.Page;

/**
 * Created by LENOVO on 2019/8/19.
 */
public interface ISearchService {

    /**
     * 全文检索加高亮显示
     * @param index
     * @param type
     * @param clz
     * @param qo
     * @param fields
     * @param <T>
     * @return
     */
     <T> Page<T> searchWithHighlight(String index, String type, Class<T> clz, SearchQueryObject qo, String... fields);
}
